interface MenuItem {
  path: string;
  name: string;
  key?: string;
  children?: Array<MenuItem>;
}

const menu: Array<MenuItem> = [
  { path: '/index', name: '首页' },
  { path: '/a', name: 'a页面' },
  { path: '/b', name: 'b页面' },
  {
    name: '用户管理',
    path: '/user',
    key: 'user',
    children: [
      {
        path: '/aa',
        name: '用户列表',
      },
      {
        path: '/bb',
        name: '添加用户',
      },
    ],
  },
];
export default menu;
